package com.alinesno.cloud.base.logger.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alinesno.cloud.base.logger.entity.LogMethodRuntimeEntity;
import com.alinesno.cloud.base.logger.repository.LogMethodRuntimeRepository;
import com.alinesno.cloud.base.logger.service.ILogMethodRuntimeService;
import com.alinesno.cloud.common.core.service.impl.IBaseServiceImpl;

/**
 * <p> 方法 服务实现类 </p>
 *
 * @author WeiXiaoJin
 * @since 2020-01-26 09:30:11
 */
@Service
public class LogMethodRuntimeServiceImpl extends IBaseServiceImpl<LogMethodRuntimeEntity, String> implements ILogMethodRuntimeService {

	//日志记录
	@SuppressWarnings("unused")
	private static final Logger log = LoggerFactory.getLogger(LogMethodRuntimeServiceImpl.class);

	@Autowired
	private LogMethodRuntimeRepository rep ; 

	@Override
	public LogMethodRuntimeEntity findByMethodKey(String methodKey) {
		return rep.findByMethodKey(methodKey) ;
	}

}
